from django.contrib import admin
from findlove.models import Candidate, CandidatePhoto


class CandidatePhotoInline(admin.StackedInline):
    model = CandidatePhoto


class CandidateAdmin(admin.ModelAdmin):
    list_display = ('candidate_name', 'candidate_gender', 'candidate_photos', 'candidate_school',
                    'uploader_name', 'uploader_wechat', 'upload_verify_evidence', 'upload_time', 'is_verify')
    inlines = [CandidatePhotoInline, ]


# Register your models here.
admin.site.register(Candidate, CandidateAdmin)